export default {
    title: 'Jimmer 社区文档',
    description: '简单上手 Jimmer',
    base: '/jimmer-doc/',
    head: [
        ['link', {rel: 'icon', href: 'logo.png'}]
    ],

    markdown: {
        lineNumbers: true,
    },

    lastUpdated: true,

    themeConfig: {
        logo: '/logo.svg',

        lastUpdatedText: 'Last edit time',

        outline: [2, 4],

        outlineTitle: 'Outline',

        docFooter: {prev: 'prev', next: 'next'},

        socialLinks: [
            {icon: 'github', link: 'https://github.com/babyfish-ct/jimmer'},
        ],

        editLink: {
            pattern: 'https://gitee.com/run-around---whats-wrong/jimmer-community-doc/tree/main/docs/:path'
        },

        nav: [
            {
                text: '教程',
                link: '/tutorial/index.html'
            },
            {
                text: '功能示例',
                link: '/showcase/index.html'
            },
            {
                text: '常见问题',
                link: '/faq/index.html'
            }
        ],

        sidebar: {
            "/tutorial/": [
                {
                    text: '教程',
                    link: '/tutorial/index.html',
                    items: [
                        {
                            text: '快速开始',
                            link: '/tutorial/0.1 quick-start.html',
                        },
                    ]
                },
                {
                    text: '基础功能',
                    items: [
                        {
                            text: '实体映射初识',
                            link: '/tutorial/1.1 entity.html',
                        },
                        {
                            text: '单表增删查改',
                            link: '/tutorial/1.2 single-table.html'
                        },
                        {
                            text: '对象抓取初识',
                            link: '/tutorial/1.3 fetcher.html',
                        },
                        {
                            text: '形状查询 output dto',
                            link: '/tutorial/1.3 output-dto.html'
                        },
                        {
                            text: 'save 保存初识',
                            link: '/tutorial/1.4 save.html',
                        },
                        {
                            text: '输入对象 input dto',
                            link: '/tutorial/1.4 input-dto.html'
                        },
                        {
                            text: '分页和排序',
                            link: '/tutorial/1.5 pagination-and-order.html'
                        },
                        {
                            text: '模型规范与数据源校验',
                            link: '/tutorial/1.6 model-standard.html'
                        },
                    ]
                },
                {
                    text: '进阶功能',
                    items: [
                        {
                            text: '查询 DSL',
                            link: '/tutorial/2.1 querydsl.html',
                        },
                        {
                            text: '查询参数 spec dto',
                            link: '/tutorial/2.1 specification-dto.html'
                        },
                        {
                            text: '枚举映射',
                            link: '/tutorial/2.2 enum.html'
                        },
                        {
                            text: '简单中间表-多对多关联',
                            link: '/tutorial/2.3 many-to-many.html'
                        },
                        {
                            text: '复杂中间表-多对多视图',
                            link: '/tutorial/2.4 many-to-many-view.html'
                        },
                        {
                            text: '统计和分组',
                            link: '/tutorial/2.5 aggregate-and-groudby.html'
                        },
                        {
                            text: 'Native 表达式',
                            link: '/tutorial/2.6 native-expression.html'
                        },
                        {
                            text: '标量映射',
                            link: '/tutorial/2.7 scalar-provider.html'
                        },
                        {
                            text: 'SQL 日志',
                            link: '/tutorial/2.8 sql-log.html'
                        },
                    ]
                },
                {
                    text: '高级功能',
                    items: [
                        {
                            text: '不可变对象',
                            link: '/tutorial/3.1 immutable.html'
                        },
                        {
                            text: 'GraphQL',
                            link: '/tutorial/3.2 GraphQL.html'
                        },
                        {
                            text: '触发器',
                            link: '/tutorial/3.3 trigger.html'
                        },
                        {
                            text: '数据库方言',
                            link: '/tutorial/3.4 dialect.html'
                        },
                    ]
                }
            ],
            "/showcase/": [
                {
                    text: '功能示例',
                    link: '/showcase/index.html',
                    items: [
                        {
                            text: 'RBAC 权限模型',
                            link: '/showcase/rbac.html'
                        },
                        {
                            text: '复合多选',
                            link: '/showcase/common-multi-check.html'
                        },
                    ]
                },
            ],
            "/faq/": [
                {
                    text: '常见问题',
                    link: '/faq/index.html',
                    items: [
                        {
                            text: '和 Lombok 一同使用',
                            link: '/faq/work-with-lombok.html'
                        },
                        {
                            text: '日期序列化',
                            link: '/faq/datetime-serialize.html'
                        },
                        {
                            text: '复杂实体的编辑',
                            link: '/faq/complex-entity-edit.md.ts',
                        },
                        {
                            text: '双层 input（input 和 save 需要结构不一致）',
                            link: '/faq/double-deck-input.html'
                        },
                    ]
                }
            ],
        }
    }
}
